<template>
  <div class="ait">
    <div class="a_inner">
      <img class="a_bg_5" src="../images/bg/5.png" alt="">
      <img class="a_bg_6" src="../images/bg/6.png" alt="">
      <div class="a_inner_top">
        <div class="a_inner_top_title">
          <h1 v-text="lang.h1Text"></h1>
        </div>
        <h4 v-text="lang.h4Text"></h4>
      </div>

      <div class="it_mapping"><img src="../images/it_mapping.png" alt="it配图"></div>
      <div class="ait_concent" :class="{ait_concent__en: langKey == 'en'}">
        <div 
          v-for="(item, index) in aitList"
          :key="index"
          :class="{
            ait_concent__en_dev1: index=== 0,
            ait_concent__en_dev2: index=== 1,
            no_mar: index === 3
          }"
        > 
          <img :src="item.imgUrl" :alt="lang.aitList[index].altText">
          <p v-text="lang.aitList[index].text"></p>
          <a 
            class="ait_concent_btn" 
            v-text="lang.aitList[index].btnText"
            :href="item.url"
          ></a>
        </div>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  props: {
    lang: {
      type: Object,
    },
    langKey: String,
  },
  data () {
    return {
      aitList: [
        { imgUrl: require("../images/idcm_lm.png"), url: '//www.idcm.io/help/about'},
        { imgUrl: require("../images/idcm.png"), url: '//www.idcm.io/help/about'},
        { imgUrl: require("../images/idcw.png"), url: '//www.idcw.io'},
        { imgUrl: require("../images/dtx.png"),  url: '//www.idcm.io'},
      ]
    }
  },
  methods: {

  },
  mounted () {

  }
}
</script>

<style lang="stylus">
.ait 
  padding-bottom: 150px;
  // background: url(../images/bg3.png) no-repeat center top;
  background-size: auto 1010px;
  .a_inner
    width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    .a_bg_5
      top: 0px;
      left: -250px;
    .a_bg_6
      top: 0px;
      right: -250px;
    .it_mapping
      margin-left: -40px;
      img
        width: 1323px;
    .ait_concent
      overflow: hidden;
      position: relative;
      z-index: 2;
      &.ait_concent__en
        .ait_concent__en_dev1
          margin-right 120px
        .ait_concent__en_dev2
          width 260px
          margin-right 120px
        p
          height 104px
      &>div
        float: left;
        width: 180px;
        margin-right: 160px;
        margin-left: 0px;
        img
          height: 40px;
          margin-bottom: 18px;
        p
          margin-bottom: 20px;
          height: 80px;
          line-height: 20px;
          opacity: 0.7;
          font-size: 14px;
        .ait_concent_btn
          display: inline-block;
          width: 134px;
          height: 42px;
          background: #203785;
          border: 1px solid #2764FE;
          border-radius: 92px;
          font-size: 14px;
          line-height: 42px;
          cursor: pointer;
          transition: all .4s;
          color #fff
          &:hover
            border: 1px solid #FFFFFF;
            background: #FFFFFF;
            color: #203785;
      .no_mar
        margin-left: 0px;
        margin-right: 0;
  

</style>
